<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8"/>

<script type="text/javascript" src="js/jquery.min.js"></script>
</head>
<body>
	<input id="catname" type="text"/>
	<!-- <textarea id="keyword"></textarea> -->
	<textarea id="urlList"></textarea>
	<button id="addSpiderList" class="btn btn-default">提交</button>
</body>
<script type="text/javascript">
	$("#addSpiderList").click(function(){
		var catname=$("#catname").val();
		// var keyword=$("#keyword").val();
		var urlList=$("#urlList").val();
		$.post("../controller/addSpiderUrlList.php",{catname:catname,urlList:urlList},function(data){
			if(data=="1"){
				alert("成功");
				location.reload();
			}
			else{
				alert(data);
			}
		});
	});
</script>
</html>